* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,li {
  list-style: none;
}

body {
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  color: #444;
  background: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0), rgba(0,0,0,0.2)),
  url(../images/2.jpg) center center no-repeat;
  background-size: cover;
  min-height: 100vh; 
  padding-bottom: 60px;
  backdrop-filter: blur(4px);
}

.icon {
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
  cursor: pointer;
}

#page {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px;
  /* overflow: hidden; */
}

#setting {
  position: fixed;
  left: 30px;
  top: 30px;
  color: #fff;
}

body.preview .icon-back {
  display: none;
}

body.preview .icon-setting {
  display: block;
}

body.setting .icon-back {
  display: block;
}

body.setting .icon-setting {
  display: none;
}


#setting .icon {
  width: 30px;
  height: 30px;
}


#search {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
}

.search-type {
  display: flex;
}

.search-tab {
  padding: 4px 8px;
  margin-right: 10px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
}

.search-tab.active {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.search-input {
  position: relative;
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 16px 0 rgba(0,0,0,0.3);
}

.search-input .icon {
  position: absolute;
  right: 4px;
  /* top: 10px; */
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.search-input > input {
  width: 400px;
  padding: 0 30px 0 10px;
  line-height: 40px;
  border: none;
  outline: none;
  color: #666;
  background-color: transparent;
  transition: all .3s;
}

/* .search-input > input:focus {
  width: calc(100vw - 40px);
} */

.search-input > input::placeholder {
  color: #999;
}

#websites .item {
  margin-top: 60px;
}

#websites .list h2 {
  color: #fff;
  font-size: 32px;
}

#websites h2 .icon-delete,
#websites h2 .icon-edit,
.panel .icon-add  {
  display: none;
}

.icon-remove   {
  position: absolute;
  right: -11px;
  top: -9px;
  width: 24px;
  height: 24px;
  display: none;
}

body.setting #websites h2 .icon-delete,
body.setting #websites h2 .icon-edit{
  display: inline;
}

body.setting .panel .icon-add   {
  display: block;
}

body.setting .icon-remove   {
  display: block;
}


#websites .panel {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 10px;
  margin-top: 20px;
  box-shadow: 0 0 16px 0 rgba(0,0,0,0.4);
}

#websites .tag {
  position: relative;
  border-radius: 4px;
  padding: 4px 16px;
  margin: 4px 8px;
}

#websites .tag:nth-child(4n+1) {
  background: lightblue;
} 

#websites .tag:nth-child(4n+2) {
  background: lightcyan;
} 

#websites .tag:nth-child(4n+3) {
  background: lightgray;
}

#websites .tag:nth-child(4n+4) {
  background: lightpink;
}

.plus {
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

body.setting .plus {
  display: flex;
}

body.preview .plus {
  display: none;
}

.plus .icon {
  width: 60px;
  height: 60px;
  color: #fff;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100vh);
  width: 600px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all .3s;
}

.modal.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.modal .field {
  margin: 10px 0px; 
}

.modal .field input {
  line-height: 20px;
  width: 100%;
}

.button {
  background: #eee;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  cursor: pointer;
}